<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>商品详细信息页</title>
  <link href="/css/prodInfo.css" rel="stylesheet" type="text/css">
  <script type="text/javascript">
  	function addCart(pid){
  		window.location.href = "addCart.action?id="+pid;
  	}
  </script>
</head>
<body>
<%@include file="_head.jsp" %>
<c:set value="${ prodOne }" var="prod"/>
	<div id="warp">
		<div id="left">
			<div id="left_top">
				<img src="${prod.imgurl}"/>
			</div>
			<div id="left_bottom">
				<img id="lf_img" src="/img/prodInfo/lf.jpg"/>
				<img id="mid_img" src="${prod.imgurl}" width="60px" height="60px"/>
				<img id="rt_img" src="/img/prodInfo/rt.jpg"/>
			</div>
		</div>
		<div id="right">
			<div id="right_top">
				<span id="prod_name">${prod.name } <br/></span>
				<br>
				<span id="prod_desc">${prod.description}<br/></span>
			</div>
			<div id="right_middle">
				<span id="right_middle_span">
				售     价：<span class="price_red" >￥${prod.price }<br/>
			            运     费：免运费<br />		
			            库     存：${prod.pnum }<br />
			            购买数量：
	            <a href="#" id="delNum" onclick="">-</a>
	            <input id="buyNumInp" name="" type="text" value="1" onblur="">
		        <a href="#" id="addNum" onclick="">+</a>
			</div>
			<div id="right_bottom">
				<input class="add_cart_but" type="button" onclick="addCart('${prod.id}')"/>
			</div>
		</div>
	</div>
	<%@include file="_foot.jsp" %>
</body>
</html>